<table>
<?php unset($this->_sections['RowGrid']);
$this->_sections['RowGrid']['name'] = 'RowGrid';
$this->_sections['RowGrid']['loop'] = is_array($_loop=$this->_tpl_vars['ColumnCount']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['RowGrid']['show'] = true;
$this->_sections['RowGrid']['max'] = $this->_sections['RowGrid']['loop'];
$this->_sections['RowGrid']['step'] = 1;
$this->_sections['RowGrid']['start'] = $this->_sections['RowGrid']['step'] > 0 ? 0 : $this->_sections['RowGrid']['loop']-1;
if ($this->_sections['RowGrid']['show']) {
    $this->_sections['RowGrid']['total'] = $this->_sections['RowGrid']['loop'];
    if ($this->_sections['RowGrid']['total'] == 0)
        $this->_sections['RowGrid']['show'] = false;
} else
    $this->_sections['RowGrid']['total'] = 0;
if ($this->_sections['RowGrid']['show']):

            for ($this->_sections['RowGrid']['index'] = $this->_sections['RowGrid']['start'], $this->_sections['RowGrid']['iteration'] = 1;
                 $this->_sections['RowGrid']['iteration'] <= $this->_sections['RowGrid']['total'];
                 $this->_sections['RowGrid']['index'] += $this->_sections['RowGrid']['step'], $this->_sections['RowGrid']['iteration']++):
$this->_sections['RowGrid']['rownum'] = $this->_sections['RowGrid']['iteration'];
$this->_sections['RowGrid']['index_prev'] = $this->_sections['RowGrid']['index'] - $this->_sections['RowGrid']['step'];
$this->_sections['RowGrid']['index_next'] = $this->_sections['RowGrid']['index'] + $this->_sections['RowGrid']['step'];
$this->_sections['RowGrid']['first']      = ($this->_sections['RowGrid']['iteration'] == 1);
$this->_sections['RowGrid']['last']       = ($this->_sections['RowGrid']['iteration'] == $this->_sections['RowGrid']['total']);
?>
    <tr>
        <td><b><?php echo $this->_tpl_vars['Columns'][$this->_sections['RowGrid']['index']]->GetCaption(); ?>
</b></td>
        <td><?php echo $this->_tpl_vars['Row'][$this->_sections['RowGrid']['index']]; ?>
</td>
    </tr>
<?php endfor; endif; ?>
</table>
</div>
<p><img src="images/cop.gif" alt="Cop" width="64" height="64" /></p>
